package com.kimwu.design.iterator.aggregate;

import com.kimwu.design.iterator.iterator.Iterator;

/**
 * 定义容器角色(Aggregate)
 * 定义集合可以进行的操作
 */
public interface List {

    void add(Object obj);

    Object get(int index);

    Iterator iterator();

    int getSize();

}